package tw.com.tuan.ui.util;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JPanel;

public class BtnMenu {
	private static JPanel jpBtnMenu;
	
	public static JPanel getPanel() {
		jpBtnMenu = new JPanel();
		jpBtnMenu.setLayout(new FlowLayout(FlowLayout.LEFT));
		jpBtnMenu.setBackground(Color.GRAY);
		
		JButton btn1 = new JButton("按鈕一");
		JButton btn2 = new JButton("按鈕二");
		JButton btn3 = new JButton("按鈕三");
		
		btn1.setPreferredSize(new Dimension(60, 60));
		btn2.setPreferredSize(new Dimension(60, 60));
		btn3.setPreferredSize(new Dimension(60, 60));
		
		jpBtnMenu.add(btn1);
		jpBtnMenu.add(btn2);
		jpBtnMenu.add(btn3);
		
		return jpBtnMenu;
	}
}
